const message = {}

function showToast(type, options) {
    uni.showToast({
        ...options,
        icon: type
    })
}

message.success = (title) => showToast("success", {
    title
})
message.error = (title) => showToast("error", {
    title
})


export default message;